/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.jcds.common.utils.Constants;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
//import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class ImageBoxEntity implements Parcelable {
    @NotNull
    public static final Parcelable.Creator<ImageBoxEntity> CREATOR = new Creator();
    @NotNull
    private final List<Box> boxList;
    @NotNull
    private final String dewarpImgUrl;
    @Nullable
    private String filePath;
    private final int height;
    private final boolean needDownload;
    @NotNull
    private final String subTaskId;
    @NotNull
    private final String transactionId;
    private final int width;

    /* compiled from: ImageBoxEntity.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<ImageBoxEntity> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final ImageBoxEntity createFromParcel(@NotNull Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            int readInt = parcel.readInt();
            ArrayList arrayList = new ArrayList(readInt);
            for (int i2 = 0; i2 != readInt; i2++) {
                arrayList.add(Box.CREATOR.createFromParcel(parcel));
            }
            return new ImageBoxEntity(arrayList, parcel.readString(), parcel.readInt(), parcel.readString(), parcel.readString(), parcel.readInt(), parcel.readInt() != 0, parcel.readString());
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final ImageBoxEntity[] newArray(int i2) {
            return new ImageBoxEntity[i2];
        }
    }

    public ImageBoxEntity(@NotNull List<Box> boxList, @NotNull String dewarpImgUrl, int i2, @NotNull String subTaskId, @NotNull String transactionId, int i3, boolean z, @Nullable String str) {
        Intrinsics.checkNotNullParameter(boxList, "boxList");
        Intrinsics.checkNotNullParameter(dewarpImgUrl, "dewarpImgUrl");
        Intrinsics.checkNotNullParameter(subTaskId, "subTaskId");
        Intrinsics.checkNotNullParameter(transactionId, "transactionId");
        this.boxList = boxList;
        this.dewarpImgUrl = dewarpImgUrl;
        this.height = i2;
        this.subTaskId = subTaskId;
        this.transactionId = transactionId;
        this.width = i3;
        this.needDownload = z;
        this.filePath = str;
    }

    @NotNull
    public final List<Box> component1() {
        return this.boxList;
    }

    @NotNull
    public final String component2() {
        return this.dewarpImgUrl;
    }

    public final int component3() {
        return this.height;
    }

    @NotNull
    public final String component4() {
        return this.subTaskId;
    }

    @NotNull
    public final String component5() {
        return this.transactionId;
    }

    public final int component6() {
        return this.width;
    }

    public final boolean component7() {
        return this.needDownload;
    }

    @Nullable
    public final String component8() {
        return this.filePath;
    }

    @NotNull
    public final ImageBoxEntity copy(@NotNull List<Box> boxList, @NotNull String dewarpImgUrl, int i2, @NotNull String subTaskId, @NotNull String transactionId, int i3, boolean z, @Nullable String str) {
        Intrinsics.checkNotNullParameter(boxList, "boxList");
        Intrinsics.checkNotNullParameter(dewarpImgUrl, "dewarpImgUrl");
        Intrinsics.checkNotNullParameter(subTaskId, "subTaskId");
        Intrinsics.checkNotNullParameter(transactionId, "transactionId");
        return new ImageBoxEntity(boxList, dewarpImgUrl, i2, subTaskId, transactionId, i3, z, str);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ImageBoxEntity)) {
            return false;
        }
        ImageBoxEntity imageBoxEntity = (ImageBoxEntity) obj;
        return Intrinsics.areEqual(this.boxList, imageBoxEntity.boxList) && Intrinsics.areEqual(this.dewarpImgUrl, imageBoxEntity.dewarpImgUrl) && this.height == imageBoxEntity.height && Intrinsics.areEqual(this.subTaskId, imageBoxEntity.subTaskId) && Intrinsics.areEqual(this.transactionId, imageBoxEntity.transactionId) && this.width == imageBoxEntity.width && this.needDownload == imageBoxEntity.needDownload && Intrinsics.areEqual(this.filePath, imageBoxEntity.filePath);
    }

    @NotNull
    public final List<Box> getBoxList() {
        return this.boxList;
    }

    @NotNull
    public final String getDewarpImgUrl() {
        return this.dewarpImgUrl;
    }

    @Nullable
    public final String getFilePath() {
        return this.filePath;
    }

    public final int getHeight() {
        return this.height;
    }

    public final boolean getNeedDownload() {
        return this.needDownload;
    }

    @NotNull
    public final String getSubTaskId() {
        return this.subTaskId;
    }

    @NotNull
    public final String getTransactionId() {
        return this.transactionId;
    }

    public final int getWidth() {
        return this.width;
    }

    public int hashCode() {
        int hashCode = ((((((((((this.boxList.hashCode() * 31) + this.dewarpImgUrl.hashCode()) * 31) + this.height) * 31) + this.subTaskId.hashCode()) * 31) + this.transactionId.hashCode()) * 31) + this.width) * 31;
        boolean z = this.needDownload;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = (hashCode + i2) * 31;
        String str = this.filePath;
        return i5 + (str == null ? 0 : str.hashCode());
    }

    public final void setFilePath(@Nullable String str) {
        this.filePath = str;
    }

    @NotNull
    public String toString() {
        return "ImageBoxEntity(boxList=" + this.boxList + ", dewarpImgUrl=" + this.dewarpImgUrl + ", height=" + this.height + ", subTaskId=" + this.subTaskId + ", transactionId=" + this.transactionId + ", width=" + this.width + ", needDownload=" + this.needDownload + ", filePath=" + this.filePath + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NotNull Parcel out, int i2) {
        Intrinsics.checkNotNullParameter(out, "out");
        List<Box> list = this.boxList;
        out.writeInt(list.size());
        for (Box box : list) {
            box.writeToParcel(out, i2);
        }
        out.writeString(this.dewarpImgUrl);
        out.writeInt(this.height);
        out.writeString(this.subTaskId);
        out.writeString(this.transactionId);
        out.writeInt(this.width);
        out.writeInt(this.needDownload ? 1 : 0);
        out.writeString(this.filePath);
    }
}